import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'

const path = require('path')
function resolve(dir) {
  return path.join(__dirname, dir)
}
// https://vitejs.dev/config/

// markdown相关开始
const mdPlugin = require('vite-plugin-markdown')
// markdown相关结束

export default defineConfig({
  plugins: [
	  vue(),
	  mdPlugin.plugin({
	    mode: ['html'],
	  })
	],
  alias: {
    '@': resolve('src')
  }
})
